gpg
gpg intro
Ref: https://www.youtube.com/watch?v=eLKOIjNFwVs
How to use gpg key to encrypt and sign a message
How to generate gpg key-pair
gpg --generate-key
If you want to get full options, use gpg --full-generate-key
List local keys
gpg --list-keys
-a or --armor encodes to plaintext
Show public key
gpg --export --armor
Save public key to a file
gpg --export --armor --output filename.pub
Send key to key server
gpg --keyserver keyserver.ubuntu.com --send-key key-id
List of key servers
- keyserver.ubuntu.com ***
- pgp.mit.edu
- keys.openpgp.org
Recieve Key
gpg --keyserver keyserver.ubuntu.com --recv-key key-id